package cn.itsource.pethome.org.mapper;

import cn.itsource.pethome.org.domain.Department;
import cn.itsource.pethome.org.query.DepartmentQuery;



import java.util.List;

/**
 *部门Mapper
 *
 *
 */

public interface DepartmentMapper {
    //新增
    void save(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
    //查询一个
    Department loadById(Long id);
    //查询所有
    List<Department> loadAll();
    //查询总条数
    Long findCountByQuery(DepartmentQuery query);
    //查询分页数据
    List<Department> fandListByQuery(DepartmentQuery query);


    void batchRemove(List<Long> ids);
}
